﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Models
{
    /// <summary>
    /// 权限角色
    /// </summary>
    public class PermissioninRole
    {
        [XYD.Framework.Key]
        [XYD.Framework.Identity]
        public int id { get; set; }
        public int role_id { get; set; }
        public int permission_id { get; set; }


        #region Permission p_

        [XYD.Framework.Write(false)]
        public int p_id { get; set; }
        [XYD.Framework.Write(false)]
        public int p_parent_id { get; set; }
        [XYD.Framework.Write(false)]
        public string p_name { get; set; }
        [XYD.Framework.Write(false)]
        public string p_menu_name { get; set; }
        [XYD.Framework.Write(false)]
        public string p_type { get; set; }
        [XYD.Framework.Write(false)]
        public string p_action { get; set; }
        [XYD.Framework.Write(false)]
        public string p_controller { get; set; }
        [XYD.Framework.Write(false)]
        public string p_target { get; set; }
        [XYD.Framework.Write(false)]
        public string p_url { get; set; }
        [XYD.Framework.Write(false)]
        public int p_sort { get; set; }
        [XYD.Framework.Write(false)]
        public string p_is_hidden { get; set; }
        [XYD.Framework.Write(false)]
        public string p_remark { get; set; }
        [XYD.Framework.Write(false)]
        public string p_icon { get; set; } 

        #endregion

        #region Role r_

        [XYD.Framework.Write(false)]
        public int r_id { get; set; }
        [XYD.Framework.Write(false)]
        public string r_name { get; set; }
        [XYD.Framework.Write(false)]
        public int r_state { get; set; }
        [XYD.Framework.Write(false)]
        public DateTime r_add_data { get; set; }
        [XYD.Framework.Write(false)]
        public int r_by_id { get; set; }
        [XYD.Framework.Write(false)]
        public int r_is_delete { get; set; } 

        #endregion
    }
}
